/*
 * Dto class 
 * Created on 6 juin 2013 ( Time 15:03:35 )
 */
// This Bean has a basic Primary Key (not composite) 

package org.demo.groupe.bean;

import java.io.Serializable;

import javax.persistence.*;

import javax.validation.constraints.* ;
import org.hibernate.validator.constraints.* ;


import javax.persistence.*;

@Entity
@Table(name="groupe", catalog="dbscoremanager" )
public class Groupe implements Serializable
{
    private static final long serialVersionUID = 1L;

    //----------------------------------------------------------------------
    // ENTITY PRIMARY KEY ( BASED ON A SINGLE FIELD )
    //----------------------------------------------------------------------
    @Id
    @GeneratedValue(strategy=GenerationType.AUTO)
    @Column(name="idGroupe", nullable=false)
    private int        idgroupe     ;


    //----------------------------------------------------------------------
    // ENTITY FIELDS 
    //----------------------------------------------------------------------    
    @Column(name="libelleGroupe", length=254)
    private String     libellegroupe ;
    @Column(name="descriptionGroupe", length=254)
    private String     descriptiongroupe ;

    //----------------------------------------------------------------------
    // ENTITY LINKS ( RELATIONSHIP )
    //----------------------------------------------------------------------

    //----------------------------------------------------------------------
    // CONSTRUCTOR(S)
    //----------------------------------------------------------------------
    public Groupe()
    {
        super();
    }
    
    //----------------------------------------------------------------------
    // GETTER & SETTER FOR THE KEY FIELD
    //----------------------------------------------------------------------
    public void setIdgroupe( int value )
    {
        this.idgroupe = value;
    }
    public int getIdgroupe()
    {
        return this.idgroupe;
    }

    //----------------------------------------------------------------------
    // GETTERS & SETTERS FOR FIELDS
    //----------------------------------------------------------------------
    //--- DATABSE MAPPING : libelleGroupe ( VARCHAR ) 
    public void setLibellegroupe( String value )
    {
        this.libellegroupe = value;
    }
    public String getLibellegroupe()
    {
        return this.libellegroupe;
    }

    //--- DATABSE MAPPING : descriptionGroupe ( VARCHAR ) 
    public void setDescriptiongroupe( String value )
    {
        this.descriptiongroupe = value;
    }
    public String getDescriptiongroupe()
    {
        return this.descriptiongroupe;
    }


    
    //----------------------------------------------------------------------
    // GETTERS & SETTERS FOR LINKS
    //----------------------------------------------------------------------


}
